//
//  UIImageView+CharSetUrl.m
//  YouBeauty
//
//  Created by Kelly xu on 2019/4/28.
//  Copyright © 2019 changrenTech. All rights reserved.
//

#import "UIImageView+CharSetUrl.h"

@implementation UIImageView (CharSetUrl)
-(void)setImageFromUrl:(NSString*)charsetUrl placeholderImage:(UIImage*)image{
    NSString *url = [charsetUrl stringByAddingPercentEncodingWithAllowedCharacters:[NSCharacterSet  URLQueryAllowedCharacterSet]];
    [self sd_setImageWithURL:[NSURL URLWithString:url] placeholderImage:image];
}
@end
